<template>
  我是blog详情页,id{{blogId}}，暂未有设计图，敬请期待
</template>
<script setup lang="ts">
import { ref,onMounted } from 'vue';
import { getBlogDetail } from '@/api/common';
import { useRouter } from 'vue-router';
const router = useRouter()
const blogId = ref(0);
const _getBlogDetail = async () => {
    const res = await getBlogDetail(blogId.value);
    // console.log(res);
};

onMounted(() => {
  blogId.value = Number(router.currentRoute.value.query.id);
  _getBlogDetail();
  
});
</script>